package com.icehand.demo.handler;

import com.alibaba.otter.canal.protocol.CanalEntry;
import com.icehand.canal.handler.CanalHandler;
import org.springframework.stereotype.Component;

/**
 * @author icehand
 */
@Component
public class HandlerImplDemo implements CanalHandler {
    @Override
    public void handle(CanalEntry.EventType eventType, CanalEntry.RowData rowData) {
        rowData.getAfterColumnsList().forEach((c) -> System.err.println("By--implements :" + c.getName() + " ::   " + c.getValue()));
    }
}